﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Xml;
 //rem
namespace SwissTV.Entities.Social
{    
    public class SocialConfig
    {
        public SocialConfig()
        {
        }

        public SocialConfig(AuthenticationInfo authentication, List<UrlInfo> urls)
            : this()
        {
            this.Authentication = authentication;
            this.Urls = urls;
        }

        public AuthenticationInfo Authentication { get; set; }

        public List<UrlInfo> Urls { get; set; }
    }

    public class AuthenticationInfo
    {
        public AuthenticationInfo()
        {
        }

        public AuthenticationInfo(AuthenticationMode mode, string url, string userID, string login, string password, string applicationCode, string key, string hash)
            : this()
        {
            this.Mode = mode;
            this.Url = url;
            this.UserID = userID;
            this.Login = login;
            this.Password = password;
            this.ApplicationCode = applicationCode;
            this.Key = key;
            this.Hash = hash;
        }

        public AuthenticationMode Mode { get; set; }

        public string Url { get; set; }

        public string UserID { get; set; }

        public string Login { get; set; }

        public string Password { get; set; }

        public string ApplicationCode { get; set; }

        public string Key { get; set; }

        public string Hash { get; set; }
    }


    public class UrlInfo
    {
        public UrlInfo()
        {
        }

        public UrlInfo(string name, string value)
            : this()
        {
            this.Name = name;
            this.Value = value;
        }


        public string Name { get; set; }

        public string Value { get; set; }
    }
}

